package cms.web.pojo;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Setter
@Getter
@NoArgsConstructor
public class TopicDto {
    @NotNull
    Long tagId;
    String tagName;
    @NotBlank
    @Length(max = 150)
    String title;
    /**
     * 允许评论
     */
    Boolean allow;
    /**
     * 状态 10.待审核 20.已发布 110.待审核删除 120.已发布删除
     */
    Integer status;
    @NotBlank
    String content;
    Integer sort;
    Boolean isTopicList;
}
